#ifndef _IPMON_CAP_H_
#define _IPMON_CAP_H_

#include "tvcIPMON.h"
int IPMON_ConfigLoad(char *errReason,int maxchnum);
int IPMON_CapInt(char *errReason);
int IPMON_CapInt2(char *errReason); // add [7/31/2019 Liu]
int IPMON_CapInt3(char *errReason); // add [4/16/2020 Liu]


// add [4/20/2020 Liu]

int IPMON_CapBufInit(char *errReason);
int IPMON_CapRecMan(char *errReason);
int IPMON_CapCheckTimeout(char *errReason);
int IPMON_CapIntNew(char *errReason); //  [4/20/2020 Liu]


int IPMON_MP3_CapInt(char *errReason);
//int IPMON_MP3_CapInt2(char *errReason);
//int IPMON_MP3_CapInt3(char *errReason);
// the end.


//  [10/27/2020 Liu]
int IPMON_CapIntNewBkup(char *errReason);
int IPMON_CapInt2Bkup(char *errReason);
int IPMON_CapInt3Bkup(char *errReason);
int IPMON_CapTest(char *errReason);
// the end.


int IPMON_CapExit();
int IPMON_GetMaxchn();
int IPMON_GetRecflg(int ch);
int IPMON_GetChnUseflg(int ch);
int IPMON_GetChCallStep(int ch);
int IPMON_CmpChnUserIP(int ch,char *IPaddr,int port,int calluser);
PCHINFO IPMON_GetChinfo(int ch);
int IPMON_SetRecflg(int ch,int action,int vol,int format);
int IPMON_CheckSessionTimeOut();
void *CheckSessionTimeOutThread(void *arg); //  [8/10/2017 Liu]
int IPMON_SetSystemFristchn(int firstinsystemch);
#endif